package poler.control.command
{
	import poler.business.View1Delegate;
	
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import poler.control.events.View1Event;
	
	
	public class View1Cmd implements ICommand
	{
		private var cFunction:Function;
	
		public function execute(event:CairngormEvent):void
		{
			var delegate:View1Delegate = new View1Delegate();
			var func:Function = delegate[View1Event(event).Method] as Function;
			if(View1Event(event).ObjectProxy != null){
				func(View1Event(event).ObjectProxy);
			}else{
				func();	
			}
		}
	//
	}
}